package com.bt7274.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 类别表
 * </p>
 *
 * @author hp
 * @since 2025-05-30
 */
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 类别ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 类别名称
     */
    private String slug;

    /**
     * 显示名称
     */
    private String name;

    /**
     * 图片路径
     */
    private String image;

    /**
     * 排序索引
     */
    private Integer sortIndex;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSlug() {
        return slug;
    }

    public void setSlug(String slug) {
        this.slug = slug;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getSortIndex() {
        return sortIndex;
    }

    public void setSortIndex(Integer sortIndex) {
        this.sortIndex = sortIndex;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id = " + id +
                ", slug = " + slug +
                ", name = " + name +
                ", image = " + image +
                ", sortIndex = " + sortIndex +
                "}";
    }
}
